package org.example.dao;

import org.example.entity.Orderdetailet;
import org.example.entity.Orders;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface IOrderdetailetRepository extends JpaRepository<Orderdetailet, Integer> {
    //save 方法不用写
    //映射后外键后，已经没有OrderId这个字段了
    public List<Orderdetailet> findAllByOrders(Orders orders);

}
